import React from 'react';
import '@testing-library/jest-dom/extend-expect';
import { render } from '@testing-library/react';
import Textfield from './Textfield';

test('should renders Textfield component', () => {
  render(<Textfield />);
});

test('should renders Textfield component with hint', () => {
  render(<Textfield hint="Enter your name" />);
});

test('should renders Textfield component with status', () => {
  render(<Textfield status="error" />);
});


test('should renders Textfield component with type', () => {
  render(<Textfield type="password" />);
});


test('should renders Textfield component with custom inputStyle', () => {
  render(<Textfield inputStyle={{ color: 'red' }} />);
});

test('should renders Textfield component with clear button', () => {
  render(<Textfield clear />);
});

test('should renders Textfield component with icon', () => {
  render(<Textfield icon={<svg />} />);
});

test('should renders Textfield component with value', () => {
  render(<Textfield value="Hello" />);
});
